package com.mybatis.dao;

import com.mybatis.domain.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleDao {

    @Select("select * from sys_user_role ur join sys_role r on ur.roleId=r.id and ur.userId=#{id}")
    List<Role> findByUid(int id);

}
